<?php
include('../../inc/global.inc');
include("../islogin.php");
if($_POST[act]){
//start sent email
		       
					 $content=iconv("utf-8","gb2312","<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd'>
<HTML xmlns='http://www.w3.org/1999/xhtml'>
<HEAD>
<TITLE>会员注册三帝贸易网</TITLE>
<style type='text/css'>
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-size: 12px;
	FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
	background-color: #FFFFFF;
}
a:link {
	color: #003399;
	text-decoration: underline;
}
a:hover {
	color: #FF6600;
	text-decoration: underline;
}
a:active {
	color: #003399;
	text-decoration: underline;
}
a:visited {
	color: #003399;
	text-decoration: underline;
}



#mail {
	padding: 0px;
	width: 622px;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	border-right-width: 1px;
	border-left-width: 1px;
	border-right-style: solid;
	border-left-style: solid;
	border-right-color: #ECE9D8;
	border-left-color: #ECE9D8;
}
#mail .info .to {
	line-height: 22px;
}

#mail .info .title {
	font-family: Arial;
	font-size: 19px;
	padding: 5px;
	background-color: #EBEBEB;
}

#mail .logo {
	float: left;
	padding-top: 13px;
}
#mail .headbg {
	float: right;
}
#mail .info {
	padding: 10px;
}
#mail .info .note {
	background-color: #ECF3FB;
	padding: 5px;
	line-height: 18px;
}

#mail .foot {
	background-color: #7EB1DA;
	padding: 6px;

	text-align: right;
}

.onl {
	clear: both;
}
-->
</style>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'></HEAD>
<BODY>
<div id='mail'>
<div class='logo'><img src='http://www.sandib2b.cn/images/logo.gif' width='388' height='60'></div>
<div class='headbg'><img src='http://www.sandib2b.cn/images/headbg.gif' width='220' height='75'></div>
<div class='onl'></div>
<table width='100%' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td height='42' align='right' valign='bottom' background='http://www.sandib2b.cn/images/webbg.gif'><img src='http://www.sandib2b.cn/images/messbg.gif' width='257' height='28'></td>
    </tr>
</table>
<div class='info'>
    <table cellspacing='0' cellpadding='0' width='100%' align='center' border='0'>
    <tbody>
      <tr>
        <td width='593' height='300' valign='top' style='line-height:25px;'><div><strong style='color:#CC0000;'>三帝贸易网钻石会员价格只要20元了，赶快加入我们的钻石会员吧。<br>
        咨询电话：0551-5154092<br>
        咨询qq:58281255<br>
网址：<a href='http://www.sandib2b.cn'>http://www.sandib2b.cn</a><br>
        </strong>
<div class='to'>
<table cellspacing='1' cellpadding='0' width='100%' bgcolor='#9dc5ff' border='0'>
  <tbody>
    <tr>
      <td height='30'><strong>三帝会员套餐介绍</strong></td>
    </tr>
    <tr>
      <td bgcolor='#ffffff' height='30'><strong>一、月钻石会员：</strong><br />您可以选择三帝币、或网上转账等方式升级为钻石会员的一种（资费：20元/月），享受钻石会员所有服务。</td>
    </tr>
    <tr>
      <td bgcolor='#ffffff' height='30'><strong>二、季钻石会员：</strong><br />您可以选择三帝币、或网上转账等方式升级为钻石会员的一种（资费：60元/季），享受钻石会员所有服务，可以自定义推广关键字（1-2个关键字），可以生产网站地图（有利于搜索引擎抓取），友情链接管理系统。</td>
    </tr>
    <tr>
      <td bgcolor='#ffffff' height='30'><strong>三、月钻石会员：</strong><br />您可以选择三帝币、或网上转账等方式升级为钻石会员的一种。（资费：220元/年），享受钻石会员所有服务，可以自定义推广关键字（1-2个关键字），可以生产网站地图（有利于搜索引擎抓取），友情链接管理系统，推广技术负责安排处理企业网站内部结构（可以更快获得更高排名）。</td>
    </tr>
  </tbody>
</table>
<br />
<table cellspacing='1' cellpadding='0' width='100%' bgcolor='#cccc66' border='0'>
  <tbody>
    <tr>
      <td height='30'><strong>三帝币介绍</strong></td>
    </tr>
    <tr>
      <td bgcolor='#ffffff' height='30'>三帝币简称SDB，是由三帝推出的一种虚拟货币，可以支付三帝会员服务等服务。通常它的兑价是1三帝币=1人民币。<br />三帝币获得方式：财付通网上在线充值，网上转账。<br />三帝币支付服务：三帝币可以支付三帝网站的所有服务（包括申请三帝账号，升级钻石会员，查看招标信息，下载三帝资料等方式）。</td>
    </tr>
  </tbody>
</table><br>
<A href='http://www.sandib2b.cn/' target='_blank'>http://www.sandib2b.cn</A>
<BR>
<br>警告：系统邮件请勿回复！
</div></div>
          </td>
      </tr>
    </tbody>
  </table>
</div>
<div class='foot'>国内专业网上商品贸易平台<font color='#CC0000'>三帝贸易网</font></div>
</div>
</BODY>
</HTML>");
					 $tomail=trim($_POST[box_mail]);
					 $box_title=iconv("utf-8","gb2312",$_POST[box_title]);
                    
					
					 sendmail($tomail,$box_title,$content);
//sent email end
echo "<script>alert('发布成功');location='xuanchuan.php';</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三帝贸易网外发邮件</title>
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</head>
</HEAD>
<BODY>
<center>
<form id="form1" name="form1" method="post" action="" onSubmit="return checkform()">
  <table width="721" height="54" border="0" align="center" cellpadding="0" cellspacing="0" class="ta">
    <tr>
      <td height="50" colspan="2" bgcolor="#EBEBEA"><h3>三帝贸易网钻石会员宣传</h3></td>
    </tr>
  </table>
  <table width="721" height="92" border="0" align="center" cellpadding="0" cellspacing="1" class="ta">
    <tr>
      <td width="105" height="26" align="center" bgcolor="#EBEBEA">邮箱地址</td>
      <td width="436" bgcolor="#FFFFFF"><textarea name="box_mail" cols="60" rows="8" id="box_mail"></textarea></td>
      <td width="176" align="center" bgcolor="#FFFFFF"><input type="button" onClick="window.open ('email.php', 'newwindow', 'height=500, width=600, top=0, left=250, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no')" value="导入邮件"></td>
    </tr>
    <tr>
      <td width="105" height="30" align="center" bgcolor="#EBEBEA">邮件主题</td>
      <td colspan="2" bgcolor="#FFFFFF"><input name="box_title" type="text" id="box_title" value="三帝贸易网钻石会员只要20元！" size="40" maxlength="250" /></td>
    </tr>
    <tr>
      <td height="36" colspan="3" align="center" bgcolor="#FAFAFA"><input type="hidden" name="act" value="job.sandib2b.cn" /><input name="Submit" type="submit" class="picbutt" value="提交" /></td>
    </tr>
  </table>
</form>
</BODY>
</HTML>

<script language="javascript">
function $(id){
return document.getElementById(id);
}
function checkform(){
if($("box_mail").value==""){
alert("邮箱不能为空");
$("box_mail").focus();
return false;
}
if($("box_title").value==""){
alert("邮件主题不能为空");
$("box_title").focus();
return false;
}
if($("box_text").value==""){
alert("邮件内容不能为空");
$("box_text").focus();
return false;
}
}
</script>